package com.gnrsoft.rpc.server.test;

import com.gnrsoft.rpc.common.entity.Person;
import com.gnrsoft.rpc.common.service.HelloService;
import com.gnrsoft.rpc.server.RpcService;

@RpcService(HelloService.class)
public class HelloServiceImpl implements HelloService {

	@Override
	public String hello(String name) {
		System.out.println(this.getClass().getName() + " Hello " + name);
		return "Hello " + name;
	}

	@Override
	public String hello(Person person) {
		System.out.println(this.getClass().getName() + " " + person);
		return "Hello " + person;
	}

}
